package com.whw.fy.mapper;
import java.util.Date;

import com.whw.fy.entity.Pay;
import java.util.List;

import com.whw.fy.entity.count.PaymentAmountStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PayMapper {
    int deleteByPrimaryKey(String payId);

    int insert(Pay record);

    int insertSelective(Pay record);

    Pay selectByPrimaryKey(String payId);

    int updateByPrimaryKeySelective(Pay record);

    int updateByPrimaryKey(Pay record);

    int batchInsert(@Param("list") List<Pay> list);

    List<Pay> selectAll();

    List<Pay> selectAllByStudentId(@Param("studentId")Integer studentId);

    List<PaymentAmountStatistics> selectAllByPayTimeNowInMonth();


    List<Pay> selectByParentId(@Param("parentId")Integer parentId);




}
